//
//  QDHDHZCycleCollectionViewCell.swift
//  QDMetroClient
//
//  Created by YueWen on 2019/4/15.
//  Copyright © 2019 YueWen. All rights reserved.
//

import UIKit

/// 放置活动盒子的集合cell
final class QDHDHZCycleCollectionViewCell: NWCollectionViewCell,RITLSDCycleScrollViewCell {
    
    /// 显示图片的容器 - RITLSDCycleScrollViewCell
    var imageView: UIImageView { return UIImageView() }
    
    /// 活动盒子的视图
    @objc let bannerView = HeziBanner(positionKey: "123456", properties: ["username":"initName"], type: .default)
    
    override func buildView() {
        super.buildView()
        
        bannerView.layer.cornerRadius = 8
        bannerView.clipsToBounds = true
        bannerView.autoScroll(false, duration: 1)
        
        contentView.addSubview(bannerView)
        
        bannerView.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
    }
}
